//
//  CoreEngine.h
//  BizLeader
//
//  Created by Draven on 2018/1/18.
//  Copyright © 2018年 biz. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef NS_ENUM(NSUInteger,HTTPSRequestType)
{
    HTTPSRequestTypeGet = 0,
    HTTPSRequestTypePost,
    HTTPSRequestTypePut,
    HTTPSRequestTypeDelete,
};
@interface CoreEngine : AFHTTPSessionManager
+ (instancetype _Nullable )sharedInstance;
/*
 * normal request
 */
+ (nullable NSURLSessionDataTask *)requestWithRequestType:(HTTPSRequestType)type
                                                urlString:(nonnull NSString *)urlString
                                                paraments:(nullable NSObject *)paraments
                                            completeBlock:(void (^_Nullable)(id _Nullable data, NSError * _Nullable error))completeBlock;
@end
